package cn.t212.cloud.ms.client;

import feign.Logger;
import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.support.BasicAuthenticationInterceptor;

@Configuration
public class FeignConfig {
    @Bean
    Logger.Level level() {
        return Logger.Level.FULL;
    }
    @Bean
    FeignRequestInterceptor requestInterceptor() {
//        return new BasicAuthRequestInterceptor("user", "password");
        return new FeignRequestInterceptor("user","password");
    }
}
